{% extends 'TopxiaAdminBundle::layout.html.twig' %}

{% set menu = 'admin_setting_course_avatar' %}
{% set script_controller = 'setting/default-course-picture' %}

{% block main %}


{{ web_macro.flash_messages() }}

  <fieldset>
    <div class="form-group">
      <div class="col-md-3 control-label"></div>
      <div class="controls col-md-8 radios" id="defaultCoursePicture">
        {{ radios('coursePicture', {1:'自定义默认课程图片', 0:'系统默认课程图片'}, defaultSetting.defaultCoursePicture|default(0)) }}
        <p>支持jpg、gif、png格式的图片，建议尺寸：480*270px.</p>
        {% include 'TopxiaAdminBundle:System:default-course-picture.html.twig' %}
      </div>
    </div>
  </fieldset>

<form class="form-horizontal" method="post" id="course-form" novalidate>
  <input type="hidden" name="defaultCoursePicture" value="{{ defaultSetting.defaultCoursePicture|default(0) }}">

  <div class="form-group">
    <div class="controls col-md-offset-3 col-md-8">
      <button type="submit" class="btn btn-primary mtl mll">提交</button>
    </div>
  </div>
  <input type="hidden" name="_csrf_token" value="{{ csrf_token('site') }}">
</form>

{% endblock %}



